<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head th:replace="layouts::header" ></head>


<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h3>教师列表</h3>
    <hr>

    <a th:href="@{/teacher/new}" class="btn btn-primary btn-sm mb-3">新建教师</a>
    <br>
    <table class="table table-bordered table-striped bx">
        <thead class="thead-dark">
        <tr>
            <th>教师编号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>最高学历</th>
        </tr>

        </thead>
        <tbody>
        <tr th:each="ateacher:${teacher}">
            <td th:text="${ateacher.teacherNum}"></td>
            <td th:text="${ateacher.name1}"></td>
            <td th:text="${ateacher.gender}"></td>
            <td  th:text="${ateacher.education}"></td>
        </tbody>
    </table>
</div>




</body>
</html>